import Vue from 'vue'
import Router from 'vue-router'
import HotBooks from '@/components/HotBooks.vue'
import BookList from '@/components/BookList.vue'
import Login from '@/components/Login.vue'
import Register from '@/components/Register.vue'
import ShoppingCart from '@/components/ShoppingCart.vue'



Vue.use(Router)

/**
 * 路由设置
 */
export default new Router({
  routes: [
    {
      path: '/BookList',
      name: 'BookList',
      component: BookList
    },
    {
      path: '/HotBooks',
      name: 'HotBooks',
      component: HotBooks
    },

    {
      path: '/Login',
      name: 'Login',
      component: Login
    },
    {
      path: '/Register',
      name: 'Register',
      component: Register
    },
    {
      path: '/ShoppingCart',
      name: 'ShoppingCart',
      component: ShoppingCart
    },
   
  ]
})
